<template>
  <div class="category">
    <h3>{{ title }}</h3>
    <slot :names="names" :msg="TNT">默認內容</slot>
  </div>
</template>

<script>
export default {
  name: "Category",
  props: ["listData", "title"],
  data() {
    return {
      names: ["MA", "DING", "SONG", "ZHANG", "LIU", "HE", "YAN"],
    };
  },
};
</script>

<style>
.category {
  background-color: lightcyan;
  width: 200px;
  height: 300px;
}
</style>